* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #38516d;
}

.form {
    position: relative;
    height: 120px;
    padding: 10px 0;
}

.form::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 120px;
    background-color: #243548;
    border-radius: 50%;
    box-shadow: 75px 0 0 #243548, 150px 0 0 #243548;
}

.form::after {
    content: '';
    position: absolute;
    top: -94px;
    left: 75px;
    height: 100%;
    width: 120px;
    background-color: #38516d;
    border-radius: 50%;
    box-shadow: 0 188px 0 #38516d;
}

.checkbox {
    position: absolute;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
}

.checkbox-label {
    position: absolute;
    z-index: 2;
    width: 100px;
    height: 100px;
    background-color: #eb0e0e;
    transform: translateX(10%) scale(1.25);
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.4s linear;
}

#checkbox:checked+.checkbox-label {
    transform: translateX(160%) scale(1.25);
    background-color: #3ccc97;
}

.checkbox-label:after {
    content: '';
    position: absolute;
    height: 30px;
    width: 4px;
    background-color: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
    transition: transform 0.5s ease;
}

.checkbox-label:before {
    content: '';
    position: absolute;
    height: 30px;
    width: 4px;
    background-color: #fff;
    transform: rotate(-45deg);
    border-radius: 2px;
    transition: height 0.5s ease, transform 0.5s ease;
}

#checkbox:checked+.checkbox-label:after {
    transform: rotate(225deg) translate(-4px, 4px);
}

#checkbox:checked+.checkbox-label:before {
    height: 20px;
    transform: rotate(-225deg) translate(9px, 4px);
}